<%-- 
    Document   : addhelp
    Created on : Apr 20, 2013, 7:44:22 PM
    Author     : TNT
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <%@page import="RMI.Client" %>
    </head>
    <body>
        <%
            request.setCharacterEncoding("UTF-8");
            String email = request.getParameter("email");
            String name = request.getParameter("name");
            String question = request.getParameter("question");
            Client client = new Client();
                boolean connect = client.Connect();
                if(connect ==false)
                out.print("<h1 align = center ><img src = 'image/sorry.jpg'> <br>Không kết nối được cơ sở dữ liệu </h1>");
                else{
            client.addHelp(email, name, question);
            response.sendRedirect("help.jsp");
                }
        %>
    </body>
</html>
